[constants]
xcode       = '/Applications/Xcode.app/Contents/Developer'
platform    = xcode + '/Platforms/iPhoneOS.platform'
sdk         = platform + '/Developer/SDKs/iPhoneOS.sdk'
osminver    = '9.0'

common_flags = ['-arch', 'arm64', '-isysroot', sdk, '-miphoneos-version-min=' + osminver]

[properties]
sizeof_int  = 4
sizeof_wchar_t = 4
sizeof_void* = 8
c_args      = common_flags + ['-fobjc-abi-version=2', '-ffast-math']
cpp_args    = common_flags + ['-fobjc-abi-version=2', '-ffast-math', '-fvisibility-inlines-hidden']
c_link_args = common_flags

[binaries]
c           = xcode + '/usr/bin/gcc'
cpp         = xcode + '/usr/bin/g++'
c_ld        = xcode + '/usr/bin/ld'
strip       = xcode + '/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip'

[host_machine]
system      = 'darwin'
cpu_family  = 'aarc64'
cpu         = 'arm64'
endian      = 'little'
